package com.itheima.object1;

import java.util.Scanner;

public class SpringReplace {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("输入一个词语");
        String s = sc.nextLine();
        String[] s1 = s.split(",");

        Student student = new Student(s1[0],s1[1]);
        System.out.println(student.getName()+""+student.getAge());


    }
}
